package com.zmn.oms.persistence.interfaces.part;

import com.zmn.oms.model.entity.part.OrderPartAddition;
import org.apache.ibatis.annotations.Param;

/**
 * 类描述：订单配件附加
 * @author wangxiaokun
 * @since  2022/03/21 14:44
 */
public interface OrderPartAdditionDao {

	/**
	 * 根据主键获取配件附加
	 * @param orderId
	 * @param workId
	 * @return
	 */
	OrderPartAddition findById(@Param("orderId") Long orderId,@Param("workId") Long workId);

	/**
	 * 根据主键修改
	 * @param orderPartAddition
	 * @return
	 */
	int updateByKey(OrderPartAddition orderPartAddition);

	/**
	 * 插入
	 * @param orderPartAddition
	 * @return
	 */
	int insert(OrderPartAddition orderPartAddition);
}